package com.hubei.car.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * 查询条件
 * @author luokangtao
 * @create 2019-08-09 16:11
 */
@ApiModel("分页查询条件")
@Data
@Accessors(chain = true)
public class PageCondition {

    @ApiModelProperty(value = "当前页", example = "1")
    @NotNull(message = "当前页不能为空")
    private Long current;

    @ApiModelProperty(value = "当前页显示多少条数据", example = "10")
    @NotNull(message = "当前页显示多少条数据不能为空")
    private Long size;

    @ApiModelProperty(value = "关键字1查询")
    private String keywordOne;

    @ApiModelProperty(value = "关键字2查询")
    private String keywordTwo;

    @ApiModelProperty(value = "名称查询")
    private String name;

    @ApiModelProperty(value = "是否置顶查询", example = "true")
    private Boolean istop;

    @ApiModelProperty(value = "是否推荐查询", example = "false")
    private Boolean isrecommend;

    @ApiModelProperty(value = "是否禁用查询", example = "false")
    private Boolean isstop;

    @ApiModelProperty(value = "id查询", example = "123")
    private Long id;

    @ApiModelProperty(value = "内容查询")
    private String contents;

    @ApiModelProperty(value = "优惠券枚举类型", example = "1/2/3")
    private Integer enumtype;

    @ApiModelProperty(value = "是否属于推荐目录", example = "true")
    private Boolean isrecommendtype;

}
